<template>
    <el-form :model="model" :rules="rules" :label-width="labelWidth" :label-position="labelPosition" v-bind="FormProps">
        <el-row v-for="row in rows" :key="row" :gutter="gutter" v-bind="RowProps">
            <slot :name="(rows > 1) ? `row${row}` : 'default'"></slot>
        </el-row>
    </el-form>
</template>

<script setup lang="ts">
import { MyRowFormType } from "./types"
import { withDefaults } from "vue"

withDefaults(defineProps<MyRowFormType>(), {
    rows: 1
})

</script>

<style scoped></style>